<%@ page contentType="text/html;charset=UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>项目信息</title>
    <link rel="stylesheet" href="css/customer.css" type="text/css">
</head>

<body>
<div class="header">
    <a href="index.jsp">服务出租管理系统</a>
    <p>by 5167 zmj</p>
</div>

<div class="navbar">
    <a href="${pageContext.request.contextPath}/Customer">客户信息</a>
    <a href="${pageContext.request.contextPath}/Employee">员工信息</a>
    <a href="${pageContext.request.contextPath}/Freelancer">自由职业者信息</a>
    <a href="${pageContext.request.contextPath}/Project">项目信息</a>
    <a href="${pageContext.request.contextPath}/Schedule">时间表</a>
    <a href="${pageContext.request.contextPath}/Schedule?method=sj" class="right">审计</a>
</div>

<div class="row">
    <div class="lside"><br/>
    </div>

    <div class="main">
        <h2>项目信息</h2>
        <table id="CustoList" >
            <tr>
                <th>项目编号</th>
                <th>项目名称</th>
                <th>项目内容</th>
                <th>项目开始时间</th>

            </tr>
            <c:forEach var="project" items="${requestScope.projectList}">
                <tr>
                    <td>${project.pid}</td>
                    <td>${project.pname}</td>
                    <td>${project.pcontent}</td>
                    <td>${project.ptime}</td>
                    <td>
                        <a id="a1" href="${pageContext.request.contextPath}/Project?method=update&projectId=${project.pid}">修改</a>
                    </td>
                    <td>
                        <a href="${pageContext.request.contextPath}/Project?method=delete&projectId=${project.pid}">删除</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
        <br/>
        <a id="a2" href="${pageContext.request.contextPath}/Project?method=add">添加项目信息</a>

    </div>

    <div class="rside"><br/>
    </div>
</div>

<script src="../js/lj.js"></script>

<div class="footer">
    <h2>底部内容</h2>
</div>
</body>
</html>